package com.landleaf.smarthome.device;

import com.landleaf.smarthome.model.DeviceAttribute;

import java.io.Serializable;
import java.util.Map;

/**
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * Created by 海航
 * 2020/8/31
 * 功能描述:
 */
public abstract class BaseLocalDeviceModel implements Serializable {
    protected Map<String, Integer> attTagAdd;
    protected Map<String, DeviceAttribute> attValueAdd;

    protected boolean isMultiple;//是否有多个

    public abstract int getStartAdd();

    /**
     * 获取需要点位的总长度
     * @return
     */
    public abstract int getAddLength();

    public boolean getIsMultiple() {
        return isMultiple;
    }

    public abstract Map<String, Integer> getAttTagAdd();

    public void setAttTagAdd(Map<String, Integer> attTagAdd) {
        this.attTagAdd = attTagAdd;
    }

    public abstract Map<String, DeviceAttribute> getAttValueAdd();

    public void setAttValueAdd(Map<String, DeviceAttribute> attValueAdd) {
        this.attValueAdd = attValueAdd;
    }

    public void setMultiple(boolean multiple) {
        isMultiple = multiple;
    }
}
